use ruma::api::federation::discovery::get_server_version;

use crate::{Result, Ruma};

pub async fn get_server_version_route(
    _body: Ruma<get_server_version::v1::Request>,
) -> Result<get_server_version::v1::Response> {
    Ok(get_server_version::v1::Response {
        server: Some(get_server_version::v1::Server {
            name: Some("lemetrix".to_string()),
            version: Some("0.1.0".to_string()),
        }),
    })
}
